/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.uc.client;

import com.xy.biz.uc.domain.req.GetSignatureRequest;
import com.xy.biz.uc.domain.req.ListSignatureRequest;
import com.xy.biz.uc.domain.resp.GetSignatureResponse;
import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author yzh
 * @date 2021-2-22
 */
public interface SignatureClient {

	/**
	 * 查找一个
	 *
	 * @param request
	 * @return
	 */
	Result<GetSignatureResponse> getSignature(GetSignatureRequest request);

	/**
	 * 查找一个
	 *
	 * @return
	 */
	Result<GetSignatureResponse> getSignatureByUserId();

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 * @return
	 */
	Result<List<GetSignatureResponse>> listSignatureById(Collection<Long> collection);
	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 * @return
	 */
	Result<List<GetSignatureResponse>> listSignatureByUserId(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<List<GetSignatureResponse>> listSignature(ListSignatureRequest request);

	/**
	 * 统计个数
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Integer> countSignature(ListSignatureRequest request);

	/**
	 * 分页查找
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Page<GetSignatureResponse>> pageSignature(ListSignatureRequest request);

}
